-- GENERATED SPELL FOR [Eliza] --


function spell0_314(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(11831,pUnit)
pUnit:RegisterEvent('Sorts_314', 8315, 1)
end

function spell1_314(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(20819,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_314', 7000, 1)
end

function spell2_314(pUnit, Event) --@Summon Eliza\'s Guard,Self--
pUnit:FullCastSpellOnTarget(3107,pUnit)
pUnit:RegisterEvent('Sorts_314', 567, 1)
end

function Sorts_314(pUnit, Event)
local choix_sorts_314 = math.random(0, 2)
if choix_sorts_314 == 0 then
pUnit:RegisterEvent('spell0_314', 1, 1)
end
if choix_sorts_314 == 1 then
pUnit:RegisterEvent('spell1_314', 1, 1)
end
if choix_sorts_314 == 2 then
pUnit:RegisterEvent('spell2_314', 1, 1)
end
end

function mob314_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_314', math.random(1500, 3000), 1)
end

function mob314_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob314_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob314_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(314, 1, 'mob314_Action')
RegisterUnitEvent(314, 2, 'mob314_Leave')
RegisterUnitEvent(314, 3, 'mob314_Kill')
RegisterUnitEvent(314, 4, 'mob314_Die')
